This is G o o g l e's cache of http://www.rockbox.org/twiki/bin/view/Main/CreateFonts as retrieved on 8 Sep 2005 07:25:31 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:mzQ1eKg0lzUJ:www.rockbox.org/twiki/bin/view/Main/CreateFonts+site:rockbox.org+createfonts&hl=en&client=firefox


Google is neither affiliated with the authors of this page nor responsible for its content.
These search terms have been highlighted: createfonts 

Rockbox . Main . CreateFonts

 Rockbox Logo 

home
download
documentation
mailing lists
wiki
IRC
forums
daily builds
feature requests
bug reports
patches


SourceForge.net Logo

Rockbox > Main > CreateFonts
Main . { Users | Changes | Index | Search | Register | Go }

How To Easily Create Font files

If you have a Linux and/or BSD system with an X server you probably already have a font server like xfs. You can use all the fonts available on this font server to create BDF files which you then can convert to the FNT format Rockbox prefers. The procedure is quite easy:

First, make sure you have a font server running. Common ones are xfs, xfs-xtt and xfstt. Usually they can be reached via a UNIX socket. On my Debian system, xfs waits for connections on unix:/7100. Other font servers may use unix:/7101 or something entirely different. If you do not have a font server, you can install one without having to install XFree86 or X.org. In Debian terms, you would do

apt-get install xfs

The tool to extract arbitrary fonts in BDF format is called fstobdf. Debian ships this program in the package xbase-clients. You can run it like this (one line):

fstobdf -s unix/:7100 -fn -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 > fixed-12.bdf

The -s parameter must be followed by the address of your font server. The -fn parameter is followed by the name of the font you want to extract. You can get a list of all available fonts with xlsfonts (which is also part of the xbase-clients Debian package) or with graphical tools like xfontsel. As fstobdf prints the BDF file to stdout, you have to redirect its output to a file (in this case fixed-12.bdf).

Anyway, if you have created one or more BDF files, you can convert them with convbdf, which is shipped within the source files of Rockbox. Simply do

convbdf -f fixed-12.bdf

where obviously fixed-12.bdf is one of your newly created BDF files. Copy the resulting fixed-12.fnt into the .rockbox/fonts directory on your player and "run" it. Rockbox should now display your font. If it looks very small and not like you expected, something went wrong in the process and Rockbox chose its default font. Maybe you tried a font that Rockbox cannot display (see below).

Note on font selection

You can try different encodings, but beware that Rockbox does not yet support Unicode. Fonts larger than 14pt probably do not work either. Please also note that even though you may be able to extract TrueType fonts (like the beautiful Bitstream family), they will look very ugly when used in Rockbox because it doesn't support Anti-Aliasing. Previewing fonts with xfontsel is probably a good idea.

X fonts gallery

The Xfree86/Xorg server distribution source contains a lot of BDF files. A gallery of a lot of these, converted to Rockbox font format can be found here. There is a problem with some of the larger fonts, where some characters look strange, or don't work at all - if you know what's causing this (BDF files are available for download as well), please contact me (JonasHaeggqvist).

{ Edit | View raw | Attach | Ref-By | Printable | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.4 - 06 Aug 2005 - 12:19 GMT - JonasHaeggqvist Copyright © 1999-2005 by the contributing authors.